package springcloud_eureka_feign_consumer.controller;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
/*
 * 定义需要转发的服务
 */
@FeignClient(name= "springcloud-eureka-feign-consumer2") 
public interface Remote {
	//注解映射请求路径
   	@RequestMapping(value = "/hello") //该路径指向被转发服务的路径，所以与被调方法的路径需要保持一致
   		//@RequestParam主要用于将请求参数区域的数据映射到控制层方法的参数上,即获取前端参数
  		public String hello(@RequestParam(value = "name") String name);
}